<!--
 * @Author: your name
 * @Date: 2022-03-30 13:14:06
 * @LastEditTime: 2022-09-27 17:08:56
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \AROperationManager_web\src\components\userLogin.vue
-->
<template>
  <div>

  </div>
</template>

<script>
export default {
  props: {
    divs: {
      type: Boolean
    }
  },
  data () {
    return {
      dialogVisible: false
    };
  },
  watch: {
    dialogVisible () {
      if (this.dialogVisible) {
        this.$alert('您的账号已在另一台设备登录，如非本人操作，则密码可能已泄漏，建议您联系管理员及时修改密码', '下线通知', {
          confirmButtonText: '确定',
          showClose: false,
          callback: action => {
            this.$router.push('/login')
            sessionStorage.removeItem('error')
            // this.$message({
            //   type: 'info',
            //   message: `action: ${action}`
            // });
          }
        })
      }
    }
  }, 
  methods: {
  }
};
</script>

<style>
</style>